package com.hl.im.gateway.config;

import lombok.Data;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author huanglin
 * @apiNote
 * @date: 2023/10/07 17:16
 */
@Configuration
@Data
public class GatewayConfig {
    @Getter
    private Long DEFAULT_TIMEOUT = 30000L;

    @Value("${spring.cloud.nacos.discovery.server-addr:127.0.0.1:8848}")
    private String NACOS_SERVER_ADDR;

    @Value("${spring.cloud.nacos.discovery.namespace:#{null}}")
    private String NACOS_NAMESPACE;

    @Value("${nacos.gateway.route.config.data-id:gateway-router.json}")
    private String NACOS_ROUTE_DATA_ID;

    @Value("${nacos.gateway.route.config.group:DEFAULT_GROUP}")
    private String NACOS_ROUTE_GROUP;

}
